# Load the rails application
require File.expand_path('../application', __FILE__)

# Initialize the rails application
PictureShare::Application.initialize!


def authorize
  unless session[:uid]
  flash[:notice] = "Please log in"
  redirect_to 'index'
  end
end
